version: '3.8'

services:

  application:
    container_name: application
    build:
      context: ./../random.values
      dockerfile: Dockerfile
    ports:
      - "5005:5005"
      - "7080:7080"
    depends_on:
      - postgres_db

  frontend:
    container_name: frontend
    build:
      context: ./../frontend
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    depends_on:
      - application

  postgres_db:
    image: postgres:16.2-alpine
    container_name: postgres
    ports:
      - "5432:5432"
    environment:
      - POSTGRES_DB=random_values
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
      - PGPORT=5432
